//sound preload
soundManager.url = 'sm2';
soundManager.debugMode = false;
//
var alm0_song = 'alm0';
var alm1_song = 'alm1';
var alm2_song = 'alm2';
var alm3_song = 'alm3';
var alm4_song = 'alm4';
var alm5_song = 'alm5';
var alm6_song = 'alm6';
var alm7_song = 'alm7';
var alm8_song = 'alm8';
var alm9_song = 'alm9';
var alm10_song = 'alm10';
//
soundManager.onload = function() {
  // soundManager is initialised, ready to use. Create a sound for this demo page.
  soundManager.createSound('alm0','mp3/chute.mp3');
  soundManager.createSound('alm1','mp3/birds_sing.mp3');
  soundManager.createSound('alm2','mp3/jungle.mp3');
  soundManager.createSound('alm3','mp3/ocean.mp3');
  soundManager.createSound('alm4','mp3/cuckoo_clock.mp3');
  soundManager.createSound('alm5','mp3/frogs.mp3');
  soundManager.createSound('alm6','mp3/thunder.mp3');
  soundManager.createSound('alm7','mp3/train.mp3');
  soundManager.createSound('alm8','mp3/loop.mp3');
  soundManager.createSound('alm9','mp3/rooster.mp3');
  soundManager.createSound('alm10','mp3/click.mp3');
//
soundManager.play(alm10_song);
}
//
function sMLoop(){
if (alarm_state==1 && alm_times>0){
alm_times--;
soundManager.play(sound_temp);
window.setTimeout("sMBeep();",5000);
}
else
{
window.setTimeout("alm_rst();",7000);
show_text(3,'status_box');
soundManager.stop(sound_temp);
}
}
//
function sMBeep(){
window.setTimeout("sMLoop();",5000);
}
//
//soundmanager - Scott Schiller (schillmania.com)